package org.airlink.persistence.criteria
{
	import flex.persistence.EntityManager;
	import flex.persistence.criteria.Expression;
	import org.airlink.persistence.EntityManagerImpl;
	public class ExpressionImpl implements Expression
	{		
		protected var _em:EntityManagerImpl;
		protected var _cls:Class;
		protected var _parameters:Array;
		
		public function get clazz():Class{
			return _cls;
		}
		
		public function ExpressionImpl(cls:Class=null, em:EntityManagerImpl=null)
		{		
			_cls = cls;
			_em = em;
			_parameters = new Array();
		}
		
		 public function asValue():String{
			return this.toString();
		}
		
		public function toString():String{
			return "";
		}
		
		public function set entityManager(em:EntityManagerImpl):void{
			_em = em;
		}
		
		public function get entityManager():EntityManagerImpl {
			return _em;
		}
		
		
		public function set parameters(parameters:Array):void{
			_parameters = parameters;
		}
		
		public function  get parameters():Array {
			return _parameters;
		}
	}
	
} 



